package org.zfes.snowier.cloud.zbss.layer.tc.biz.service;

import java.util.List;
import java.util.Map;
import java.util.Optional;

import org.zfes.snowier.core.data.DataSet;

import org.zfes.snowier.cloud.zbss.layer.tc.biz.model.Percentage;
import org.zfes.snowier.cloud.zbss.layer.tc.biz.model.PercentageExport;
public interface IPercentageService{

	 Optional<Percentage> loadPercentageById(Long id);
	
	 void createPercentage(Percentage percentage,String creator,String role);
	
	 void updatePercentage(Percentage percentage,String role);

	 void deletPercentage(Long id);
	
	 DataSet loadPercentageDataSet(Map<String, Object> params);
	 
	 List<Percentage> loadByWeiTuoRenName(Long id, String weiTuoRenName);
	 
//	List<Percentage> loadPercentageByPlaintiff(Long thisRecordId, String plaintiff);

//	List<Percentage> loadPercentageByDefendant(Long thisRecordId, String defendant);
	
//	List<Percentage> loadByDefendantAndPlaintiffExchange(Long thisRecordId, String defendant, String plaintiff);
	
	String loadNewCaseNum(String today);

//	DataSet loadPercentageDataSetForExport(Map<String, Object> params);

	 
	  void updateCaseStatus(String type,List<Long> ids, int caseStatus) ;

	Optional<Percentage> loadPercentageByCasNum(String caseNum);
	
	Optional<Percentage> loadPercentageByCaseFileNum(String caseFileNum);
	
	Optional<Percentage> loadPercentageByCaseAgreementNum(String caseAgreementNum);
}